<section class="content no-padding">
	<div class="row">
		<div class="box">
			<div class="box-body">
				<div class="col-lg-9 col-md-12 conLeft clearfix" id="person_info_div">
				   	<div class="col-xs-12 col-md-6 col-lg-4">
						<div class="form-group">
				        	<label class="text-muted">姓名/工号:</label>
				        	<span id="openDialog_name"></span>
				    	</div>
					</div>
				   	<div class="col-xs-12 col-md-6 col-lg-4">
						<div class="form-group">
				        	<label class="text-muted">性别:</label>
				        	<span id="openDialog_personnel_sex"></span>
				    	</div>
					</div>
				   	<div class="col-xs-12 col-md-6 col-lg-4">
						<div class="form-group">
				        	<label class="text-muted">所属部门:</label>
				        	<span id="openDialog_dept_name"></span>
				    	</div>
					</div>
					<div class="col-xs-12 col-md-6 col-lg-4">
						<div class="form-group" id="openDialog_singerShow">
				        	<label class="text-muted">是否热门歌手展示:</label>
				        	<span id="openDialog_hotSinger"></span>
				    	</div>
					</div>
					<div class="col-xs-12 col-md-6 col-lg-4">
						<div class="form-group" id="openDialog_showOder">
				        	<label class="text-muted">展示排序:</label>
				        	<span id="openDialog_hotSingerOrder"></span>
				    	</div>
					</div>
					<div class="col-xs-12 col-md-12 col-lg-12">
						<div class="form-group" id="openDialog_showOder">
				        	<label class="text-muted">个人照片:</label>
				        	<img id="openDialog_person_img" style="width:400px;height:260px;" src="">
				    	</div>
					</div>					
				</div>
				<div class="col-lg-3 col-md-12 conRight" id="head_img_div">
					<img id="openDialog_head_img" style="width:128px;height:128px;"src="">
				</div>
			</div>
		</div>
	</div>
</section>
<script type="text/javascript">
var defaultImg = global_param.context_name+"/static/img/defaultImg/defaultSquareImg.png";
var defaultImg_cover = global_param.context_name+"/static/img/defaultImg/defaultLongImg.png";

$(function() {
	getPersonInfo();
});

function getPersonInfo(){
    $.ajax({
        type: "POST",
        url: globalUtil.getTimestampUrl("/person/search.do"),
        data: {personnel_id : personId},
        async: false,
        dataType: 'json',
        success: function(result) {
        	var personInfo = result.rows[0];
        	$("#openDialog_name").html(personInfo.personnel_name);
        	$("#openDialog_personnel_sex").html(personInfo.personnel_sex);
        	
        	$("#openDialog_dept_name").html(personInfo.dept_name);
        	if(personInfo.hotSinger == 1){        		
        		$("#openDialog_hotSinger").html("显示");
        	}else{
        		$("#openDialog_hotSinger").html("不显示");
        	}
        	$("#openDialog_hotSingerOrder").html(personInfo.hotSingerOrder);
        	
        	if(!personInfo.myHeadPhoto || personInfo.myHeadPhoto == ""){
        		$('#openDialog_head_img').attr('src',global_param.context_name+defaultImg);
        	}else{
        		$('#openDialog_head_img').attr('src',global_param.context_name+personInfo.myHeadPhoto);
        	}
        	
        	if(!personInfo.myCoverPhoto || personInfo.myCoverPhoto == ""){
        		$('#openDialog_person_img').attr('src',global_param.context_name+defaultImg_cover);
        	}else{
        		$('#openDialog_person_img').attr('src',global_param.context_name+personInfo.myCoverPhoto);
        	}
        }
    });
}

</script>
